package com.sgzn.sgpay.service.tcp.receive.handler;

import com.sgzn.sgpay.service.tcp.receive.TcpReceiveCallHandlerTemplate;
import com.sgzn.sgpay.service.tcp.receive.modle.TcpReceiveCallRequest;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 面板账目清零应答 处理器
 * @author huangsenguang
 * @version Id: TcpBoardBillSetZeroHandler.java, v 0.1 2018/7/30 11:19 huangsenguang Exp $$
 */
@Service
@Slf4j
public class TcpBoardBillSetZeroHandler extends TcpReceiveCallHandlerTemplate<Boolean> {
    /**
     * 协议总字符数
     */
    @Getter
    private final int protocolLength = 12;

    @Override
    public Boolean callInner(TcpReceiveCallRequest request) {
        return true;
    }

    @Override
    protected int getProtocolLength(TcpReceiveCallRequest request) {
        return this.protocolLength;
    }
}

